#ifndef __TOUCH_PORT_H
#define __TOUCH_PORT_H

#define TOUCH_USE				(1)  // Support a touch screen 
#define TOUCH_USE_RTP			0
#define TOUCH_USE_CTP			0

#define TOUCH_USE_NS2009			0
#define TOUCH_USE_GT9147			0
#define TOUCH_USE_GT911				0
#define TOUCH_USE_XPT2046			0
#define TOUCH_USE_FT5x06			1
#define TOUCH_USE_HWI2C 			1

#define TOUCH_RST_PORT			GPIOD
#define TOUCH_RST_PIN			GPIO_Pin_6

#define TOUCH_ISR_PORT			GPIOD
#define TOUCH_ISR_PIN			GPIO_Pin_7

#if TOUCH_USE_XPT2046

	#if LCD_USE_TK043F1508
		#define TOUCH_DIR 	3
		#define TOUCH_X_MIN 120
		#define TOUCH_X_MAX 3900
		#define TOUCH_Y_MIN 220
		#define TOUCH_Y_MAX 3850
	#endif
	
	#if LCD_USE_BTG242432
		#define TOUCH_DIR		0
		#define TOUCH_X_MIN 120
		#define TOUCH_X_MAX 3900
		#define TOUCH_Y_MIN 220
		#define TOUCH_Y_MAX 3850
	#endif
#endif

#endif

